.class Lcom/waiqin365/lightapp/kehu/w;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/w;->a:Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 4

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/w;->a:Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->d(Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;)Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v2, "selectAgencyId"

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/w;->a:Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->a(Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;)Ljava/util/ArrayList;

    move-result-object v0

    add-int/lit8 v3, p3, -0x1

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/am;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "selectAgencyIdName"

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/w;->a:Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->a(Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;)Ljava/util/ArrayList;

    move-result-object v0

    add-int/lit8 v3, p3, -0x1

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/am;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/w;->a:Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;

    const/4 v2, -0x1

    invoke-virtual {v0, v2, v1}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->setResult(ILandroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/w;->a:Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;->e(Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;)V

    :cond_0
    return-void
.end method
